package com.liyunc.demo.bundle.user.org.dao.repository;

import com.liyunc.demo.bundle.user.org.model.entity.UserPersonalAccount;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * @author liyuncong
 * @version 1.0
 * @file UserPersonalAccountRepository.java
 * @brief UserPersonalAccountRepository
 * @details UserPersonalAccountRepository
 * @date 2022-04-01
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                        NAME               DESCRIPTION
 * 2022-04-01                  liyuncong          Created
 */
@Repository
public interface UserPersonalAccountRepository
    extends JpaRepository<UserPersonalAccount, Long> {

    Optional<UserPersonalAccount> findByLoginUsernameAndRowStatus(
        String loginUsername, Integer rowStatus);
}
